﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WHMS.EntityClasses
{
	public partial class ItemEntity
	{
		public string NameAndCode 
		{
			get
			{
				return string.Format("{0}  -  {1}", Name, Code);
			}
		}
		public string NameCodeUnit
		{
			get
			{
				if(Unit_ != null)
					return string.Format("{0}  -  {1}  -  ({2})", Name, Code, Unit_.Name);
				
				return string.Format("{0}  -  {1}  -  ({2})", Name, Code, Unit);
			}
		}
	}
}
